﻿using SqlSugar;
using System;
using System.Collections.Generic;

namespace SYSoft.Model.Model.Models
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [SugarTable("t_User")]
    public class sys_User : RootEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 真实名称
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 性别（0：女，1：男）
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadShot { get; set; }


        /// <summary>
        /// 角色集合 
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<sys_Role> Roles { get; set; }

    }
}
